<div class="container-fluid">
    <div class="row-fluid">
        <div class="span3">
            <?php echo $this->partial('choix/menu.phtml', array('num_vente' => $this->num_vente));?>
            <!--/.well -->
        </div>
        <!--/span-->
        <div class="span9">
            <div class="wrap">
                <div id="main-content">
                	<div class="top-link"><a href="<?php echo $this->baseUrl('admin/articles/new') ?>/?num_vente=<?php echo $this->numVente ?>">Ajouter une actualité</a></div>
                    <table>
                        <thead>
                            <tr>
                                <th align="center">Caisse</th>
                                <th align="center">Catégorie</th>
                                <th colspan="3">N°</th>
                                <th align="center">Série</th>
                                <th class="td-head">Description</th>
                                <th align="right">Adjugé</th>
                                <th align="center">Editer</th>
                                <th align="center">Supprimer</th>
                                <th align="right">Estimation</th>
                            </tr>
                        </thead>
                        <tfoot>
                            <tr>
                                <td colspan="10">
                                    <?php if(count($this->paginator) > 1) :?>
                                        <?php echo $this->paginationControl($this->paginator, 'Sliding', '_pagination.phtml', array('num_vente' => $this->numVente)); ?>
                                    <?php endif;?>
                                    <!-- End .pagination -->

                                    <div class="clear"></div>
                               </td>
                            </tr>
                        </tfoot>
                        <tbody style="width:100%">
                        <?php  foreach($this->paginator as $row): ?>
                            <tr>
                                <td valign="top" style="text-align:left"><?php echo ($row['caisse'] !=0)? $row['caisse']:''?></td>
                                <td valign="top" style="text-align:left"><?php echo stripslashes($row['nom']);?>&nbsp;</td>
                                <td valign="top" style="text-align:right"><?php $row['num_article'];?></td>
                                <td valign="top"> &nbsp;<?php echo $row['numero'];?></td>
                                <td valign="top"> &nbsp;<?php echo $row['sous'];?></td>
                                <td valign="top" style="text-align:left"><?php echo stripslashes($row['titre']);?>&nbsp;</td>
                                <td valign="top" style="text-align:left"><?php echo stripslashes($row['desc_longue']);?>"</td>
                                <td valign="top" style="text-align:right"><?php echo ($row['adjuge'] != "")? number_format($row['adjuge'],2,",","."):''?></td>
                                <td valign="top" align="center"><a href="<?php echo $this->baseUrl('admin/articles/edit') ?>/?id=<?php echo $row['p_articles']?>&num_vente=<?php echo $this->numVente ?>"><img src="<?php echo $this->baseUrl('images/pencil.png') ?>" alt="Editer" /></a></td>
                                <?php if ($row['adjuge'] == 0):?>
                                    <td valign="top"><a class="delete-item" href="<?php echo $this->baseUrl('admin/articles/delete') ?>/?id=<?php echo $row['p_articles']?>&num_vente=<?php echo $this->numVente ?>"><img src="<?php echo $this->baseUrl('images/cross.png') ?>" alt="Supprimer" /></a></td>
                                <?php else :?>
                                    <td valign="top"></td>
                                <?php endif;?>
                                <td valign="top" align="right"><?php echo $row['estimation']?></td>
                            </tr>
                        <?php endforeach ?>
                        </tbody>
                    </table>
                </div>
            </div>
            <!--/row-->
        </div>
        <!--/span-->
    </div>
    <!--/row-->
</div>